﻿<%@ Page Title="" Language="C#" MasterPageFile="~/programmingM.master" AutoEventWireup="true" CodeBehind="courses.aspx.cs" Inherits="UnwiseSource.courses" %>
<asp:Content ID="content_programming_courses" ContentPlaceHolderID="programming_body" runat="server">
    <asp:Panel runat="server" id="programming_container" class="content-holder">
        <asp:UpdatePanel runat="server" ID="course_up" UpdateMode="Always">
            <ContentTemplate>
                <header>
                    <h1 id="courses_header" runat="server"></h1>
                </header>
                <div runat="server" id="course_content">

                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
    <script type="text/javascript">
        
        function CheckLanguage(lang) {
            PageMethods.SaveLanguage(lang, onSuccess, onFail);
        }

        function onSuccess(response) {
            //alert(response);
            var UpdatePanel1 = '<%= course_up.ClientID%>';
            __doPostBack(UpdatePanel1, '');
        }

        function onFail() {
            //alert("Fail");
        }
    </script>
</asp:Content>